using System;
using Cos.Core.Model.Form;

namespace Cos.Core.NHibernate
{
    using System.Collections.Generic;

    public class FormElementChoiceDataModel
    {
        public virtual int FormElementId { get; set; }

        //public virtual IEnumerable<FormElementChoiceCultureDataModel> FormElementChoiceCultures { get; set; }

        public virtual int Id { get; set; }

        public virtual bool IsDeleted { get; set; }

        public virtual int Ordering { get; set; }

        public virtual string Value { get; set; }

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }

            var model = obj as FormElementChoiceDataModel;

            return model != null && this.Id == model.Id;
        }

        public override int GetHashCode()
        {
            return this.Id.GetHashCode();
        }
    }
}
